package com.kaishengit.pojo;

import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
@Entity
@Table(name="t_eventitem")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class EventItem {
	
	private int id;
	private String itemname;
	
	private Set<Event> eventSet;
	

	public String getItemname() {
		return itemname;
	}
	@Id
	@GeneratedValue
	public int getId() {

		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public void setItemname(String itemname) {
		this.itemname = itemname;
	}
	
	@OneToMany(mappedBy="eventitem")
	public Set<Event> getEventSet() {
		return eventSet;
	}
	public void setEventSet(Set<Event> eventSet) {
		this.eventSet = eventSet;
	}
	
	
	
}
